xen/arm: vgic-v3: Correctly set GICD_TYPER.IDbits
authorJulien Grall <julien.grall@linaro.org>
Mon, 16 Feb 2015 14:50:41 +0000 (14:50 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 19 Feb 2015 16:54:01 +0000 (16:54 +0000)
commit8206d052eb11061d7b6cada566c0804c14001fec
tree605aedf7f360efbc2a34fc93db57c5eabc32280f
parentd04b137ea76571e9e5f90625a7d96c4eb964a223
xen/arm: vgic-v3: Correctly set GICD_TYPER.IDbits

From Linux 3.19, the GICv3 drivers is using GICD_TYPER.IDbits to check
the validity of the hardware interrupt number.

The field IDBits in the register GICD_TYPER is used to know the number of
interrupt identifiers (SPI, PPIs, SGIs, LPIs) supported by GIC Stream Protocol
Interface.

This field contains the number of interrupt identifier bits minus one.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic-v3.c
xen/include/asm-arm/gic_v3_defs.h